import router from 'umi/router';

function checkStatus(data) {
  if (data.code === '888888') {
    router.replace('/user/login');
    return '';
  }
}

export default checkStatus;
